package wordroid.activitys;

import android.app.Dialog;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import java.io.File;
import java.util.StringTokenizer;

public class ImportBook extends ListActivity
{
  protected static final int IMPORT_FAIL = 265;
  protected static final int IMPORT_SUCCEED = 264;
  public static String result = "";
  private Button cancel;
  private Button confirm;
  private String[] fileNames;
  private TextView filename;
  private Handler mHandler = new Handler();
  private ProgressDialog myDialog = null;
  private EditText numOfEachList;
  String order;
  RadioGroup radioGroup;
  RadioButton shunxu;

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setTitle("导入新词库");
    setContentView(2130903044);
    setRequestedOrientation(5);
    File[] arrayOfFile = new File("/sdcard/").listFiles();
    this.fileNames = new String[arrayOfFile.length];
    for (int i = 0; ; ++i)
    {
      if (i >= this.fileNames.length)
      {
        setListAdapter(new ArrayAdapter(this, 2130903042, this.fileNames));
        return;
      }
      this.fileNames[i] = arrayOfFile[i].getName();
    }
  }

  protected void onListItemClick(ListView paramListView, View paramView, int paramInt, long paramLong)
  {
    super.onListItemClick(paramListView, paramView, paramInt, paramLong);
    Dialog localDialog = new Dialog(this);
    localDialog.setTitle("导入新词库");
    localDialog.setContentView(2130903045);
    localDialog.show();
    this.filename = ((TextView)localDialog.findViewById(2131165191));
    EditText localEditText = (EditText)localDialog.findViewById(2131165192);
    this.numOfEachList = ((EditText)localDialog.findViewById(2131165193));
    this.confirm = ((Button)localDialog.findViewById(2131165197));
    this.cancel = ((Button)localDialog.findViewById(2131165198));
    this.shunxu = ((RadioButton)localDialog.findViewById(2131165195));
    this.radioGroup = ((RadioGroup)localDialog.findViewById(2131165194));
    /*this.radioGroup.setOnCheckedChangeListener(new 2(this));
    this.filename.setText("词库文件：" + this.fileNames[paramInt]);
    this.cancel.setOnClickListener(new 3(this, localDialog));
    localEditText.setText(new StringTokenizer(this.fileNames[paramInt], ".").nextToken());
    this.confirm.setOnClickListener(new 4(this, localEditText, localDialog, paramInt));*/
  }
}

/* Location:           E:\Desktop\Android\英语词汇记忆\classes_dex2jar.jar
 * Qualified Name:     wordroid.activitys.ImportBook
 * JD-Core Version:    0.5.3
 */